<?php


defined('_JEXEC') or die;

abstract class NBExpertProfileHelper
{
	
	public static function addSubmenu($vName)
	{
		JSubMenuHelper::addEntry(
			JText::_('COM_NBEXPERTPROFILE_SUBMENU_PROFILES'),
			'index.php?option=com_nbexpertprofile&view=items',
			$vName == 'items'
		);
		JSubMenuHelper::addEntry(
			JText::_('COM_NBEXPERTPROFILE_SUBMENU_CATEGORIES'),
			'index.php?option=com_categories&extension=com_nbexpertprofile',
			$vName == 'categories'
		);

		if ($vName=='categories') {
			JToolBarHelper::title(
				JText::sprintf('COM_NBEXPERTPROFILE_CATEGORIES_TITLE',JText::_('com_nbexpertprofile')),
				'profiler-categories');
		}
	}
	
}
?>